<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
 
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style>
html {
	height: 100%;
}
body {
	margin: 0;
	padding: 0;
	height: 100%;
	
}
</style>
</head>
<body>
	<c:url value="/main/main/register" var="registrationUrl"/>
  	<div style="width:100%; height:10%"></div>
    <div style="width:100%; height:80%; text-align:center; vertical-align:middle">
    <form style="width:360px; height:250px; border:1px solid black; text-align:justify; margin:auto;padding-left:20px;background-color: #e8eefa;" action="../../j_spring_security_check" method="post" >
     		<h2>LOG IN</h2>
     		<p><label for="j_username">Username</label> <input id="j_username" name="j_username" type="text" /></p>
			<p><label for="j_password">Password</label> <input id="j_password" name="j_password" type="password" /></p>
			<p><input type="submit" value="Submit" /></p>
			<p><a href="${registrationUrl}">Register to login</a></p>
			<p style="color: red">${error}</p>
	</form>		
    </div>
    <div style="width:100%; height:10%;text-align: right"></div> 
</body>
</html>